|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Agent
agents.anac.y2011.HardHeaded.KLH
public class KLH
This class contains main agent methods and algorithms that agent uses in a negotiation session based on Alternating Offers protocol.
| Field Summary |
|---|
| Fields inherited from class negotiator.Agent |
|---|
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace |
| Constructor Summary | |
|---|---|
KLH()
|
|
| Method Summary | |
|---|---|
Action |
chooseAction()
This is the main strategy of that determines the behavior of the agent. |
double |
get_p()
This function calculates the concession amount based on remaining time, initial parameters, and, the discount factor. |
java.lang.String |
getName()
|
static java.lang.String |
getVersion()
|
void |
init()
handles some initializations. |
void |
ReceiveMessage(Action pAction)
Receives opponent's action |
| Methods inherited from class negotiator.Agent |
|---|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KLH()
| Method Detail |
|---|
public void init()
init in class Agentpublic static java.lang.String getVersion()
public java.lang.String getName()
getName in class Agentpublic void ReceiveMessage(Action pAction)
ReceiveMessage in class Agentpublic double get_p()
public Action chooseAction()
chooseAction in class AgentAction that contains agents decision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||